.class Lcom/example/m6wmr/wxapi/WXEntryActivity$3;
.super Landroid/os/Handler;
.source "WXEntryActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/wxapi/WXEntryActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/wxapi/WXEntryActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$3;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    .line 274
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 9
    .param p1, "msg"    # Landroid/os/Message;

    .prologue
    const/4 v8, 0x0

    .line 276
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    .line 277
    iget v6, p1, Landroid/os/Message;->arg1:I

    sparse-switch v6, :sswitch_data_0

    .line 354
    :goto_0
    :sswitch_0
    return-void

    .line 283
    :sswitch_1
    iget-object v6, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$3;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    # getter for: Lcom/example/m6wmr/wxapi/WXEntryActivity;->mcontext:Landroid/content/Context;
    invoke-static {v6}, Lcom/example/m6wmr/wxapi/WXEntryActivity;->access$1(Lcom/example/m6wmr/wxapi/WXEntryActivity;)Landroid/content/Context;

    move-result-object v6

    iget-object v7, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v7}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7, v8}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v6

    invoke-virtual {v6}, Landroid/widget/Toast;->show()V

    goto :goto_0

    .line 296
    :sswitch_2
    iget-object v6, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$3;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    # getter for: Lcom/example/m6wmr/wxapi/WXEntryActivity;->mcontext:Landroid/content/Context;
    invoke-static {v6}, Lcom/example/m6wmr/wxapi/WXEntryActivity;->access$1(Lcom/example/m6wmr/wxapi/WXEntryActivity;)Landroid/content/Context;

    move-result-object v6

    const-string v7, "\u6b63\u5728\u767b\u9646\u3002\u8bf7\u7a0d\u5019\u3002\u3002\u3002 "

    invoke-static {v6, v7, v8}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v6

    invoke-virtual {v6}, Landroid/widget/Toast;->show()V

    .line 299
    :try_start_0
    new-instance v4, Lorg/json/JSONObject;

    iget-object v6, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$3;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    # getter for: Lcom/example/m6wmr/wxapi/WXEntryActivity;->gethttpString:Ljava/lang/String;
    invoke-static {v6}, Lcom/example/m6wmr/wxapi/WXEntryActivity;->access$9(Lcom/example/m6wmr/wxapi/WXEntryActivity;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v4, v6}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 300
    .local v4, "object":Lorg/json/JSONObject;
    const-string v6, "WWWWWWWWWWWWWW"

    iget-object v7, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$3;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    # getter for: Lcom/example/m6wmr/wxapi/WXEntryActivity;->gethttpString:Ljava/lang/String;
    invoke-static {v7}, Lcom/example/m6wmr/wxapi/WXEntryActivity;->access$9(Lcom/example/m6wmr/wxapi/WXEntryActivity;)Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 302
    const-string v6, "WWWWWWWWdsfdsfdsfdsfdsfWWWWWW"

    .line 303
    const-string v7, "error"

    invoke-virtual {v4, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 302
    invoke-static {v6, v7}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 305
    const-string v6, "error"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    const-string v7, "true"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_0

    .line 307
    iget-object v6, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$3;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    # getter for: Lcom/example/m6wmr/wxapi/WXEntryActivity;->mcontext:Landroid/content/Context;
    invoke-static {v6}, Lcom/example/m6wmr/wxapi/WXEntryActivity;->access$1(Lcom/example/m6wmr/wxapi/WXEntryActivity;)Landroid/content/Context;

    move-result-object v6

    const-string v7, "msg"

    invoke-virtual {v4, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v7

    const/4 v8, 0x0

    invoke-static {v6, v7, v8}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v6

    invoke-virtual {v6}, Landroid/widget/Toast;->show()V

    .line 308
    const-string v6, "\u624b\u673a\u5feb\u6377\u767b\u9646\u9519\u8bef------\u300b\u300b"

    const-string v7, "msg"

    invoke-virtual {v4, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 346
    .end local v4    # "object":Lorg/json/JSONObject;
    :catch_0
    move-exception v0

    .line 348
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0

    .line 313
    .end local v0    # "e":Lorg/json/JSONException;
    .restart local v4    # "object":Lorg/json/JSONObject;
    :cond_0
    :try_start_1
    const-string v6, "msg"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v3

    .line 314
    .local v3, "json":Lorg/json/JSONObject;
    const-string v6, "WWWWWWWWWWWWWW"

    invoke-virtual {v3}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 316
    iget-object v6, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$3;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    .line 317
    const-string v7, "userInfo"

    const/4 v8, 0x0

    .line 316
    invoke-virtual {v6, v7, v8}, Lcom/example/m6wmr/wxapi/WXEntryActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v5

    .line 318
    .local v5, "userInfo":Landroid/content/SharedPreferences;
    invoke-interface {v5}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v6

    const-string v7, "uid"

    const-string v8, "uid"

    invoke-virtual {v3, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-interface {v6, v7, v8}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v6

    .line 319
    invoke-interface {v6}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 320
    invoke-interface {v5}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v6

    const-string v7, "username"

    const-string v8, ""

    invoke-interface {v6, v7, v8}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v6

    invoke-interface {v6}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 321
    invoke-interface {v5}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v6

    const-string v7, "pass"

    const-string v8, ""

    invoke-interface {v6, v7, v8}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v6

    invoke-interface {v6}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 322
    invoke-interface {v5}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v6

    .line 323
    const-string v7, "phone"

    const-string v8, "phone"

    invoke-virtual {v3, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-interface {v6, v7, v8}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v6

    .line 324
    invoke-interface {v6}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 325
    invoke-interface {v5}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v6

    .line 326
    const-string v7, "logo"

    const-string v8, "logo"

    invoke-virtual {v3, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-interface {v6, v7, v8}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v6

    .line 327
    invoke-interface {v6}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 328
    invoke-interface {v5}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v6

    .line 329
    const-string v7, "temppassword"

    .line 330
    const-string v8, "temp_password"

    invoke-virtual {v3, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 329
    invoke-interface {v6, v7, v8}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v6

    .line 331
    invoke-interface {v6}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 333
    const-string v6, "?????????????"

    .line 334
    const-string v7, "temppassword"

    const-string v8, "oooooo"

    invoke-interface {v5, v7, v8}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 333
    invoke-static {v6, v7}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 336
    iget-object v6, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$3;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    iget-object v6, v6, Lcom/example/m6wmr/wxapi/WXEntryActivity;->m:Lmyapp/MyApp;

    const-string v7, "applogin"

    invoke-virtual {v6, v7}, Lmyapp/MyApp;->setlogintype(Ljava/lang/String;)V

    .line 337
    iget-object v6, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$3;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    iget-object v6, v6, Lcom/example/m6wmr/wxapi/WXEntryActivity;->m:Lmyapp/MyApp;

    const-string v7, "phone"

    invoke-virtual {v3, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Lmyapp/MyApp;->setloginphone(Ljava/lang/String;)V

    .line 339
    new-instance v2, Landroid/content/Intent;

    const-string v6, "jason.broadcast.action"

    invoke-direct {v2, v6}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 340
    .local v2, "intents":Landroid/content/Intent;
    iget-object v6, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$3;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    invoke-virtual {v6, v2}, Lcom/example/m6wmr/wxapi/WXEntryActivity;->sendBroadcast(Landroid/content/Intent;)V

    .line 342
    new-instance v1, Landroid/content/Intent;

    iget-object v6, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$3;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    const-class v7, Lcom/example/usercenter/UserCenterActivity2;

    invoke-direct {v1, v6, v7}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 343
    .local v1, "intent":Landroid/content/Intent;
    iget-object v6, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$3;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    invoke-virtual {v6, v1}, Lcom/example/m6wmr/wxapi/WXEntryActivity;->startActivity(Landroid/content/Intent;)V

    .line 344
    iget-object v6, p0, Lcom/example/m6wmr/wxapi/WXEntryActivity$3;->this$0:Lcom/example/m6wmr/wxapi/WXEntryActivity;

    invoke-virtual {v6}, Lcom/example/m6wmr/wxapi/WXEntryActivity;->finish()V
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_0

    .line 277
    nop

    :sswitch_data_0
    .sparse-switch
        0x0 -> :sswitch_0
        0x1 -> :sswitch_1
        0xf -> :sswitch_2
        0x14 -> :sswitch_0
        0x15 -> :sswitch_0
    .end sparse-switch
.end method
